<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Hello World app</title>
    <script type="text/javascript">
        (function(win) {
            var doc = win.document;
            var docEl = doc.documentElement;
            var ori = win.orientation || 0;
            // 设计稿宽度
            var dd = 750;
            // 竖屏宽高比
            var wh = 9 / 16;
            // 默认rem设置
            var defaultRem = 100;
            // 像素比
            var dpr = win.devicePixelRatio;
            // 缩放
            var scale = dpr ? 1 / dpr : 1;
            // 输出viewport
            doc.write('<meta name="viewport" content="width=device-width, initial-scale=' + scale + ',maximum-scale=' + scale + ',minimum-scale=' + scale + ',user-scalable=no">');
            // 网页宽度
            var docW = docEl.getBoundingClientRect().width;
            // 横屏换算
            if (Math.abs(ori) == 90) {
                docW *= wh;
            }
            // html设置字号
            docEl.style.fontSize = (docW / dpr) * defaultRem / (dd / dpr) + 'px';
        })(window)
    </script>
    <script src="./lib/fastclick.js" charset="utf-8"></script>
    <script src="./lib/react.js" charset="utf-8"></script>
    <script src="./lib/react-dom.js" charset="utf-8"></script>
    <script src="./lib/ReactRouter.js" charset="utf-8"></script>
</head>

<body>
</body>
<script src="http://localhost:7000/lib/jquery-3.1.0.js"></script>
<!-- <script src="http://localhost:8080/webpack-dev-server.js"></script>
<script src="http://localhost:8080/bundle.js"></script> -->
<script src="app.js"></script>

</html>
